package com.pet_service.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pet_service.entity.OrderHomeService;
import com.pet_service.result.Result;

/**
* @author 邹全伸
* @description 针对表【order_home_service(上门服务-订单关联表)】的数据库操作Service
* @createDate 2025-09-20 09:18:18
*/
public interface OrderHomeServiceService extends IService<OrderHomeService> {
    //查询服务订单的状态,PENDING(0, "待执行"),EXECUTING(1, "执行中"),COMPLETED(2, "已完成");
    Result getOrderStatus(Integer id);

    //物理删除
    boolean physicalDelete(Integer id);

    // 查询订单并附带地址信息
    IPage<OrderHomeService> pageWithAddressInfo(Page<OrderHomeService> page,
                                                QueryWrapper<OrderHomeService> queryWrapper);
}
